package com.example.comment_oa.pojos.xinzi;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName jiben_butiejisuan
 */
@TableName(value ="jiben_butiejisuan")
@Data
public class JibenButiejisuan implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer jibenId;

    /**
     * 
     */
    private String jibenButieid;

    /**
     * 
     */
    private String jibenButiename;

    /**
     * 
     */
    private Double jibenButiejine;

    /**
     * 
     */
    private String jibenName;

    /**
     * 
     */
    private String jibenGonghao;

    /**
     * 
     */
    private String jibenBumen;

    /**
     * 
     */
    private Integer jibenBumenid;

    /**
     * 
     */
    private String jibenZhiwu;

    /**
     * 
     */
    private Integer jibenZhiwuid;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM")
    private Date jibenRiqi;

    /**
     * 
     */
    private Integer jibenIssend;

    @TableField(exist = false)
    private Boolean ff;

    @TableField(exist = false)
    private Double allMoney;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JibenButiejisuan other = (JibenButiejisuan) that;
        return (this.getJibenId() == null ? other.getJibenId() == null : this.getJibenId().equals(other.getJibenId()))
            && (this.getJibenButieid() == null ? other.getJibenButieid() == null : this.getJibenButieid().equals(other.getJibenButieid()))
            && (this.getJibenButiename() == null ? other.getJibenButiename() == null : this.getJibenButiename().equals(other.getJibenButiename()))
            && (this.getJibenButiejine() == null ? other.getJibenButiejine() == null : this.getJibenButiejine().equals(other.getJibenButiejine()))
            && (this.getJibenName() == null ? other.getJibenName() == null : this.getJibenName().equals(other.getJibenName()))
            && (this.getJibenGonghao() == null ? other.getJibenGonghao() == null : this.getJibenGonghao().equals(other.getJibenGonghao()))
            && (this.getJibenBumen() == null ? other.getJibenBumen() == null : this.getJibenBumen().equals(other.getJibenBumen()))
            && (this.getJibenBumenid() == null ? other.getJibenBumenid() == null : this.getJibenBumenid().equals(other.getJibenBumenid()))
            && (this.getJibenZhiwu() == null ? other.getJibenZhiwu() == null : this.getJibenZhiwu().equals(other.getJibenZhiwu()))
            && (this.getJibenZhiwuid() == null ? other.getJibenZhiwuid() == null : this.getJibenZhiwuid().equals(other.getJibenZhiwuid()))
            && (this.getJibenRiqi() == null ? other.getJibenRiqi() == null : this.getJibenRiqi().equals(other.getJibenRiqi()))
            && (this.getJibenIssend() == null ? other.getJibenIssend() == null : this.getJibenIssend().equals(other.getJibenIssend()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getJibenId() == null) ? 0 : getJibenId().hashCode());
        result = prime * result + ((getJibenButieid() == null) ? 0 : getJibenButieid().hashCode());
        result = prime * result + ((getJibenButiename() == null) ? 0 : getJibenButiename().hashCode());
        result = prime * result + ((getJibenButiejine() == null) ? 0 : getJibenButiejine().hashCode());
        result = prime * result + ((getJibenName() == null) ? 0 : getJibenName().hashCode());
        result = prime * result + ((getJibenGonghao() == null) ? 0 : getJibenGonghao().hashCode());
        result = prime * result + ((getJibenBumen() == null) ? 0 : getJibenBumen().hashCode());
        result = prime * result + ((getJibenBumenid() == null) ? 0 : getJibenBumenid().hashCode());
        result = prime * result + ((getJibenZhiwu() == null) ? 0 : getJibenZhiwu().hashCode());
        result = prime * result + ((getJibenZhiwuid() == null) ? 0 : getJibenZhiwuid().hashCode());
        result = prime * result + ((getJibenRiqi() == null) ? 0 : getJibenRiqi().hashCode());
        result = prime * result + ((getJibenIssend() == null) ? 0 : getJibenIssend().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", jibenId=").append(jibenId);
        sb.append(", jibenButieid=").append(jibenButieid);
        sb.append(", jibenButiename=").append(jibenButiename);
        sb.append(", jibenButiejine=").append(jibenButiejine);
        sb.append(", jibenName=").append(jibenName);
        sb.append(", jibenGonghao=").append(jibenGonghao);
        sb.append(", jibenBumen=").append(jibenBumen);
        sb.append(", jibenBumenid=").append(jibenBumenid);
        sb.append(", jibenZhiwu=").append(jibenZhiwu);
        sb.append(", jibenZhiwuid=").append(jibenZhiwuid);
        sb.append(", jibenRiqi=").append(jibenRiqi);
        sb.append(", jibenIssend=").append(jibenIssend);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}